<%@ page import="ro.gateway.aida.usr.*,
                 ro.gateway.aida.db.PersistenceToken,
                 ro.gateway.aida.db.PersistenceManager,
                  ro.gateway.aida.utils.HttpUtils"%>
<%@ taglib uri="/WEB-INF/translator.tld" prefix="trans" %>
<trans:initPage module="users" />
<%
  PersistenceToken token = PersistenceManager.tokenLookup( application );
  
  long id=Long.parseLong(request.getParameter("id"));
  User user = UserDB.getManager(token).getById(id);
  
  if (user==null) { 
 %>  	<trans:showPageMessage label="userunknown" /> <%
  } else {
%>

<!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
 <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> 
<title>User Details</title>
<link rel="stylesheet" href="../alf.css" type="text/css"/>
</head>
<body bgcolor="#FFFFFF" class=text>


 <table width="98%" border="0" cellspacing="1" cellpadding="5" class="text_search" bgcolor="#3399CC" align="center">
    <tr> 
      <th colspan="2" class=textalb bgcolor="3399CC"><trans:showPageMessage label="userinfo" /></th>
    </tr>
    <tr> 
      <td width="30%" bgcolor="ffffff"><trans:showPageMessage label="page.fnames" />:</td>
      <td bgcolor="#FFFFFF" class="text_searchbold"> <%=HttpUtils.strPrint(user.getFirstNames(),"")%></td>
    <tr> 
      <td width="30%" bgcolor="#FFFFFF"><trans:showPageMessage label="page.lname" />:</td>
      <td bgcolor="#FFFFFF" class="text_searchbold"><%=HttpUtils.strPrint(user.getLastName(),"")%></td>
    </tr>

    <tr> 
      <td width="30%" bgcolor="#FFFFFF"><trans:showPageMessage label="page.email" />:</td>
      <td bgcolor="#FFFFFF" class="text_searchbold"> <a href="mailto:<%=HttpUtils.strPrint(user.getEmail(),"")%>"><%=HttpUtils.strPrint(user.getEmail(),"")%></a></td>
    </tr>

    <tr> 
      <td width="30%" bgcolor="#FFFFFF"><trans:showPageMessage label="page.org" />:</td>
      <td bgcolor="#FFFFFF" class="text_searchbold"><%=HttpUtils.strPrint(user.getOrganization(),"")%></td>
    </tr>

    <tr> 
      <td width="30%" bgcolor="#FFFFFF"><trans:showPageMessage label="page.usercountry" />:</td>
      <td bgcolor="#FFFFFF" class="text_searchbold"><%=HttpUtils.strPrint(user.getCountryName(),"")%></td>
    </tr>



</body>

</html>
<% } %>